package cn.edu.gench.learn.day1;

/**
 * @auther zhuzhongbiao
 * @date 2017/3/17 0017
 *
 *  ==  内存地址比较
 *  equals 数值比较 字符串
 */
public class HomeWorkDay1 {
    //享元模式  100，1000
    public static String exchange(String str){
        String result = "";
        if(str.equals("A")){
            result = "90-100";
        }else if("B".equals(str)){
            result = "80-89";
        }else if("C".equals(str)){
            result = "70-79";
        }else{
            result = "0-69";
        }
        return result;
    }
    public static void main(String[] args) {
        String result = HomeWorkDay1.exchange("A");
        System.out.printf(result);
    }
}
